package control.face
{
	import core.View;
	
	import flash.display.DisplayObject;
	
	import utils.DisplayTool;
	import utils.animate.AlphaMoveTween;
	
	import view.face.Hint;

	public class HintControl
	{
		private var _view:View = View.getInstance();
		
		
		public function HintControl()
		{
			_view.hint = new Hint();
		}
		
		public function showHint(target:DisplayObject,content:String,isUp:Boolean = false):void
		{
			_view.hintLayer.addChild(_view.hint);
			
			
			_view.hint.showHint(target,content,isUp);
		}
		
		public function hideHint():void
		{
			DisplayTool.removeChild(_view.hintLayer,_view.hint);
		}
		
		public function clear():void
		{
			DisplayTool.removeChild(_view.hintLayer,_view.hint);
		}
	}
}